package org.javatribe.calculator.common;

import java.util.function.Consumer;
import java.util.function.Function;

/**
 * Created by Wenxin on 2017/9/15.
 */
public interface Callback extends Runnable {

    Callback success(Consumer<? super BaseFrame>success);

    Callback failure(Consumer<? super Exception>failure);

    Callback execute(Function<BaseFrame, Void> run);

}
